package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.ProjectDeliveryChannel;

import java.util.List;
import java.util.Map;

public interface ProjectDeliveryChannelMapperExt extends ProjectDeliveryChannelMapper {

    ProjectDeliveryChannel selectByChannelCode(String channelCode);

    /**
     *
     * @Description 根据期限和利率查询符合的投放渠道
     * @param condition
     * @return List<ProjectDeliveryChannelRule>
     *
     */
    List<Map<String,Object>> selectByDeadLineAndInterestRate(Map<String,Object> condition);

    /**
     *
     * @Description 查找默认渠道
     * @return ProjectDeliveryChannel
     *
     */
    ProjectDeliveryChannel selectDefaultDeliveryChannel();

    /**
     *
     * @Description 查找有效的投放渠道
     * @return List<ProjectDeliveryChannel>
     *
     */
    List<ProjectDeliveryChannel> selectEffectiveDeliveryChannelList();
}